package tp.ui.menu;

import tp.ui.menu.client.Connexion;
import tp.ui.menu.client.MyInformation;
import tp.ui.menu.gare.GareInformation;
import tp.ui.menu.pattern.Menu;
import tp.ui.menu.ticket.AcheterTicket;
import tp.util.DataSingleton;

public class Accueil extends Menu {

	public Accueil() {
		super("Accueil");

		if (DataSingleton.getInstance().getClient() != null) {
			addMenu(new MyInformation());
			addMenu(new GareInformation());
			addMenu(new AcheterTicket());
			addMenu(new TableDesMatieres());

		}
		addMenu(new Connexion());
	}

}
